(
// create an array of buttons.
var w;

w = GUI.window.new("button panel", Rect(128, 64, 340, 360));
w.view.decorator = FlowLayout(w.view.bounds);
32.do({ arg i;
b = GUI.button.new(w, Rect(0,0, 75, 24));
b.states = [["Start "++i, Color.black, Color.rand],["Stop "++i, Color.white, Color.red]];
});
//w.view.background = Color(0.6,0.8,0.8);
w.front;
)
